package com.guosifan.repository;

import com.guosifan.entity.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderRepository {

    public void save(Order order);

    public List<Order> findByUid(int uid,int start , int row);

    int findByIdCount(int uid);

    List<Order> findByState(int start, int row);

    int count();

    void updateState(int id);
}
